/**
 * Created by gemini on 2017/4/24.
 */
myApp.controller('venuelistCtrl',function ($scope,$state,$cookieStore,venueService) {
    $scope.company_id = $cookieStore.get("operator").company_id;

    $scope.pages = {
        maxSize:5,
        pageSize:10,
        currentPage:1,
        totalPages:""
    };
    venueService.venueList($scope.company_id,$scope.pages.currentPage,$scope.pages.pageSize,function (data) {
        if(!data.errno == 0){
            alert(data.errmsg);
        }else{
            $scope.venues = data.data.data;
        }
    });

    //页面跳转
    $scope.jumpToUrl = function (targetUrl) {
        $state.go(targetUrl);
    };
});